package com.fz.service.member;

import com.fz.common.ResponseEntity;
import com.fz.dto.client.login.WxAuthDto;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface LoginService {

    ResponseEntity loginMc(String mobilePhone, String code, HttpServletRequest request, HttpServletResponse response) throws Exception;

    ResponseEntity loginByMp(String mobilePhone, String password, HttpServletRequest request, HttpServletResponse response) throws Exception;

//    ResponseEntity getOpenidAndUnionid(String encryptedData, String code, String iv)throws Exception;

    ResponseEntity loginByWechat(WxAuthDto wxAuthDto, HttpServletRequest request, HttpServletResponse response) throws Exception;

     ResponseEntity logout(String token, HttpServletRequest request) throws Exception ;
}
